#ifndef _BALL_H_
#define _BALL_H_
#include <vector>
#include "point.h"


class Ball : public Point{
public:
	Ball(){};
	Ball(int a, int b, int rr):
		Point(a, b){
		r = rr;
	}
	Ball(const Ball& b){};
	~Ball(){};
	float distance(const Ball& a);
	float angle(const Ball& b);
	bool bump(const Ball& a, float angle, const Ball& b);
	int calcBumpPoint(const std::shared_ptr<Ball>& hole, Point& pnt);
	bool canBump(const Point& a, const Ball& mid) const;

	
//private:
	int r;
	int numofpixel;
};




#endif